package cn.sangyy.basic.common.code;

import lombok.Getter;

@Getter
public enum CodeEnum {
    SUCCESS(200,"操作成功！"),
    FAIL(201, "操作失败！"),
    PARAM_ERROR( 202, "参数不正确"),
    SERVICE_ERROR(203, "服务异常,请联系管理员"),
    DATA_ERROR(204, "数据异常"),
    TWO_PASSWORD_ERROR(205,"两次密码输入不相等！"),
    TENANT_EXIST_ERROR(206,"租户已经存在，请直接登录使用！"),
    TENANT_EMPLOYEE_EXIST_ERROR(207,"租户的管理员已存在，请登录账号再添加！"),

    LOGIN_AUTH(208, "未登陆,请先登录！"),
    PERMISSION(209, "没有权限"),

    CODE_ERROR(210, "验证码错误"),
    LOGIN_MOBLE_ERROR(211, "账号不正确"),
    LOGIN_DISABLED_ERROR(212, "改用户已被禁用"),
    REGISTER_MOBLE_ERROR(213, "手机号已被使用"),
    LOGIN_AURH(214, "需要登录"),
    LOGIN_ACL(215, "没有权限"),
    LIST_ISNULL(216,"数据列表为空"),

    FETCH_USERINFO_ERROR( 219, "获取用户信息失败"),
    LOGIN_ERROR( 23005, "登录失败"),

    PAY_RUN(220, "支付中"),
    CANCEL_ORDER_FAIL(225, "取消订单失败"),
    ON_SALE_NUM_EMPTY(40001,"老铁，你不选中数据，臣妾上架不了啊...."),
    OFF_SALE_NUM_EMPTY(40002,"老铁，你不选中数据，臣妾下架不了啊...."),
    OFF_SALE_REAL_NUM_EMPTY(40003,"老铁，你选中的数据,都不符合上架要求...."),
    REGISTER_IMAGE_CODE_ERROR(40004,"图片验证码输入错误！"),
    REGISTER_IMAGE_CODE_KEY_NO_EXISTS(40005,"验证码比对失败，请重新刷新再尝试！"),
    REGISTER_PHONE_NO_GET_CODE(40006,"不要频繁获取验证码！"),
    REGISTER_PHONE_CODE_EXPIRED(40007,"验证码已失效，请重新获取！"),
    REGISTER_PHONE_IS_EXIST(40008,"该手机号已被注册！"),
    REGISTER_EMAIL_IS_EXIST(40009,"该邮箱已被注册！"),
    REGISTER_USERNAME_IS_EXIST(400010,"该用户名已被使用！"),
    LOGIN_USERNAME_IS_ERROR(400011,"账号或密码错误！"),
    LOGIN_USERNAME_IS_EXPIRE(400012,"登录已过期，请重新登录！"),
    REGISTER_PHONE_NOT_EXIST(400013,"该手机号未被注册！"),
    BIND_PHONE_NOT_EMPTY(400014,"手机号不能为空！"),
    BIND_PHONE_WECHAT_IS_EXIST(400015,"该手机号已经绑定了微信，请勿重复绑定！"),
    ;

    private Integer code;
    private String message;

    CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
